-- GENERATED SPELL FOR [Petrified Treant] --


function spell0_11458(pUnit, Event) --@Harden Skin,Self--
pUnit:FullCastSpellOnTarget(22693,pUnit)
pUnit:RegisterEvent('Sorts_11458', 10280, 1)
end

function Sorts_11458(pUnit, Event)
local choix_sorts_11458 = math.random(0, 0)
if choix_sorts_11458 == 0 then
pUnit:RegisterEvent('spell0_11458', 1, 1)
end
end

function mob11458_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11458', math.random(1500, 3000), 1)
end

function mob11458_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11458_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11458_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11458, 1, 'mob11458_Action')
RegisterUnitEvent(11458, 2, 'mob11458_Leave')
RegisterUnitEvent(11458, 3, 'mob11458_Kill')
RegisterUnitEvent(11458, 4, 'mob11458_Die')
